DSH 插件 dsh-code-diff-viewer:把 edit / write 工具调用变成可折叠代码对照面板

dsh-code-diff-viewer 是专为 DeepSeek Harness (DSH) Web 界面开发的第三方插件,旨在优化 `edit` 和 `write` 工具调用的可视化体验。它并非 DSH 官方组件,而是以纯视觉方式注入对话流,将代码变更渲染为可折叠的「修改前/修改后」对照面板,不新建模式且不落盘文件。 该插件核心功能包括:根据增删混合、纯新增或纯删除类型自动选择双列或单列展示形式;通过 Host 端反推显示绝对行号以便定位;内置轻量分词器支持 JS/TS、Python 等语言的语法高亮;以及智能卡片折叠,自动展开最新修改并收起历史记录。 安装需满足已安装 DSH CLI、p

Read More
Git Version Comparison: How to View Code Differences Between Different Versions

Git version comparison is a fundamental and commonly used operation, tracking code changes through diff tools to facilitate collaboration and management. Scenarios requiring version comparison include: locating development errors, checking the staging area before commits, understanding differences before merging branches, and confirming content before rolling back. Common commands and scenarios: 1. Differences between the working directory and the staging area: `git diff`; 2. Differences between the staging area and the most recent commit: `git diff --staged`; 3. Differences between two historical commits: `git diff <commit1> <commit2>` (supports relative commit names like `HEAD~n`); 4. Differences between two branches: `git diff branch1 branch2`; 5. Viewing the content of a single commit: `git show <commit-id>`. Graphical tools (such as VS Code, GitKraken) are suitable for beginners. Mastering commands for different scenarios enables efficient code version management.

Read More